package ui;

import java.awt.Dimension;
import java.awt.Graphics;

import javax.swing.JPanel;

class TitlePanel extends JPanel{

	private static final long serialVersionUID = 1L;

	TitlePanel(){
		super();
		Dimension imageDimension =new Dimension(InterfaceSprite.getImage(InterfaceElement.TITLE).getWidth(), InterfaceSprite.getImage(InterfaceElement.TITLE).getHeight());
		setMaximumSize(imageDimension);
		setOpaque(false);
	}
	
	protected void paintComponent(Graphics g){
		super.paintComponent(g);
		g.drawImage(InterfaceSprite.getImage(InterfaceElement.TITLE), 0, 0, null, null);
	}

}
